<?php
	$this->title('View Patients');
?>
<h2>Patients</h2>
<span style="margin: 0 0 1em 2.75em;"><?=$this->html->link('add New', array('Patients::add')); ?></span>
<ul>
    <?php foreach ($patients as $patient) { ?>
        <li style=" list-style-type: none;">
        	<span style="width: 40px;"><?=$patient->PatID; ?></span>
        	<span style="width: 40px; margin-left: 20px;"><?=$this->html->link('Edit', array('Patients::edit', 'args' => $patient->id)); ?></span>
        	<span style="width: 40px; margin-left: 20px;"><?=$this->html->link('View', array('Patients::view', 'args' => $patient->id)); ?></span>
        </li>
    <?php } ?>
</ul>